<?php
/**
 * 统一访问入口
 */

require_once dirname(__FILE__) . '/init.php';
header('Access-Control-Allow-Methods:GET, POST, PUT, DELETE'); //支持的请求类型
header('Access-Control-Allow-Origin:*');
header('Access-Control-Allow-Headers:Accept, Origin, X-Requested-With, Content-Type,Last-Modified,device,X-Token');
header('Access-Control-Allow-Credentials:true');
if(strtoupper($_SERVER['REQUEST_METHOD'])== 'OPTIONS'){
    exit;
}

//DI()->loader->addDirs('App');

$pai = new \PhalApi\PhalApi();
$pai->response()->output();

